Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Prettier and StandardJS #538

Closed
wants to merge 1 commit into from

Conversation

deepsource-autofix[bot]
Copy link
Contributor

This commit fixes the style issues introduced in 5df95d1 according to the output
from Prettier and StandardJS.

Details: None

This commit fixes the style issues introduced in 5df95d1 according to the output
from Prettier and StandardJS.

Details: None
Copy link

vercel bot commented Dec 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pro-react-admin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 10:11am

Copy link

what-the-diff bot commented Dec 26, 2024

PR摘要

  • 简化了ContentPlaceholder组件中的whileInView属性的语法
    这次更改使代码变得更容易理解和阅读。
  • home/index.jsx文件中把几个<section>标签变成了自闭合的形式
    这次更改是为了让JSX的语法更加规范。
  • Home组件中对按钮和圆形元素进行了改造,使用了自闭合的标签
    这也是为了使代码更加干净,更便于阅读。
  • 简化了AnimateOnScreen.DiyAnimation中的triggerOnce属性的语法
    这会使代码更易于维护。
  • motion/index.jsx文件中,将几个<motion.div>元素改为自闭合的标签
    这样的更改可以使代码更清洁,更易于维护。
  • 简化了ParallaxVert组件中的dragSnapToOrigin属性的语法
    这样的修改可以降低代码的复杂性,使得更容易阅读和维护。
  • randomSort函数中,newArr的数组声明方式从let变为了const
    这次更改是为了提升代码质量,使其更具有可靠性。

Copy link

Qodana for JS

369 new problems were found

Inspection name Severity Problems
ESLint 🔴 Failure 231
Unused import 🔶 Warning 15
Unused local symbol 🔶 Warning 13
Unnecessary non-capturing group 🔶 Warning 6
Mismatched JSDoc and function signature 🔶 Warning 4
Redundant local variable 🔶 Warning 4
Redundant character escape 🔶 Warning 3
Import can be shortened 🔶 Warning 2
Equality operator may cause type coercion 🔶 Warning 1
Unused assignment 🔶 Warning 1
Void function return value used 🔶 Warning 1
Duplicate character in character class 🔶 Warning 1
Unresolved JSX component ◽️ Notice 62
Deprecated symbol used ◽️ Notice 12
Result of method call returning a promise is ignored ◽️ Notice 8
Duplicated code fragment ◽️ Notice 2
Regular expression can be simplified ◽️ Notice 2
Missing await for an async function call ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@wkylin wkylin closed this Dec 27, 2024
@wkylin wkylin deleted the deepsource-transform-5e2f08bc branch January 2, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant